/**
 * 作者: hxl
 * 日期: 2025-03-10 11:36:56
 * 备注: 用户跨服限时任务表
 */
package com.motu.monstercity.server.game.userdata;

import com.motu.vertx.module.utility.model.EntityManager;

public class UserCrossRankActTask extends UserCrossRankActTaskModel {
    public UserCrossRankActTask() {
        super();
    }

    public UserCrossRankActTask(long userId, long round, int configId, int taskType) {
        putUserId(userId);
        putRound(round);
        putConfigId(configId);
        putTaskType(taskType);
        String listKey = EntityManager.getFieldJoinString(userId, configId);
        putActListKey(listKey);
    }

    public void checkReset(long round) {
        if (getRound() != round) {
            putCurP(0);
            putRound(round);
            update();
        }
    }

}
